From 3e58ea0c7d84e7168e73f32b15aa170996df03cd Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 12 Jan 2004 06:43:14 +0000 Subject: [PATCH] Let timeouts work right under Windows so GSAK (and users) can more readily tell when their unit is turned off or unplugged. --- gpsbabel/jeeps/gpsserial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/jeeps/gpsserial.c b/gpsbabel/jeeps/gpsserial.c index a2e24e75e..5b6d02ebc 100644 --- a/gpsbabel/jeeps/gpsserial.c +++ b/gpsbabel/jeeps/gpsserial.c @@ -84,6 +84,8 @@ int32 GPS_Serial_On(const char *port, int32 *fd) GetCommTimeouts (comport, &timeout); timeout.ReadIntervalTimeout = 10; + timeout.ReadTotalTimeoutMultiplier = 10; + timeout.ReadTotalTimeoutConstant = 1000; timeout.WriteTotalTimeoutMultiplier = 10; timeout.WriteTotalTimeoutConstant = 1000; if (!SetCommTimeouts (comport, &timeout)) { -- 2.30.2